﻿using Game.Actions;
using Game.Common;
using Game.Map;

namespace Game.Command.Internal
{
    public class ShowAllCommand : GameCommand
    {
        public override string Name
        {
            get { return "ShowAll"; }
        }

        protected override ActionResult Execute(GameTurn turn,
                                                Context context)
        {
            foreach (IMapFieldView f in context.GameMapView.ViewFields)
            {
                f.IsVisible = true;
            }
            
            return new ActionResult(0, "");
        }

    }
    
}
